home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 4287 / 4287.xpi / chrome / splitbrowser.jar / content / splitbrowser / splitbrowser.xul < prev   
Extensible Markup Language  |  2009-11-05  |  27KB  |  570 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="splitbrowser.css" type="text/css"?>
  4. <?xml-stylesheet href="chrome://splitbrowser/skin/splitbrowser.css" type="text/css"?>
  5. <?xml-stylesheet href="chrome://splitbrowser/skin/buttons.css" type="text/css"?>
  6. <?xml-stylesheet href="chrome://splitbrowser/skin/toolbar.css" type="text/css"?>
  7. <?xml-stylesheet href="chrome://splitbrowser-platform/skin/toolbar.css" type="text/css"?>
  8.  
  9. <?xul-overlay href="fullScreenCanvas.xul"?>
  10.  
  11. <!DOCTYPE bindings SYSTEM "chrome://splitbrowser/locale/">
  12.  
  13. <overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  14.     xmlns:html="http://www.w3.org/1999/xhtml">
  15.  
  16. <script type="application/x-javascript" src="splitbrowser.js"/>
  17. <script type="application/x-javascript" src="hacks.js"/>
  18. <script type="application/x-javascript" src="animationManager.js"/>
  19.  
  20. <broadcasterset id="mainBroadcasterSet">
  21.     <broadcaster id="splitbrowser-collapseAll-broadcaster"
  22.         disabled="true"/>
  23.     <broadcaster id="splitbrowser-expandAll-broadcaster"
  24.         disabled="true"/>
  25.     <broadcaster id="splitbrowser-featuresForSplitBrowsers-broadcaster"
  26.         disabled="true"/>
  27.     <broadcaster id="splitbrowser-featuresForMultipleTabs-broadcaster"
  28.         disabled="true"/>
  29.     <broadcaster id="splitbrowser-undo-broadcaster"
  30.         disabled="true"/>
  31.     <broadcaster id="splitbrowser-syncScroll-broadcaster"
  32.         checked="true"/>
  33. </broadcasterset>
  34.  
  35. <commandset id="mainCommandSet">
  36.     <command id="splitbrowser-collapseAll-command"
  37.         oncommand="SplitBrowser.collapseAllSubBrowsers();"
  38.         observes="splitbrowser-collapseAll-broadcaster"/>
  39.     <command id="splitbrowser-expandAll-command"
  40.         oncommand="SplitBrowser.expandAllSubBrowsers();"
  41.         observes="splitbrowser-expandAll-broadcaster"/>
  42.     <command id="splitbrowser-removeAll-command"
  43.         oncommand="SplitBrowser.removeAllSubBrowsers();"
  44.         observes="splitbrowser-featuresForSplitBrowsers-broadcaster"/>
  45.     <command id="splitbrowser-undo-command"
  46.         oncommand="SplitBrowser.undoRemoveSubBrowser();"
  47.         observes="splitbrowser-undo-broadcaster"/>
  48.     <command id="splitbrowser-undoList-command"
  49.         oncommand="SplitBrowser.undoRemoveSubBrowser(parseInt(event.target.getAttribute('index')));"
  50.         observes="splitbrowser-undo-broadcaster"/>
  51.     <command id="splitbrowser-layout-grid-command"
  52.         oncommand="
  53.             var b = SplitBrowser.activeBrowser;
  54.             if (b.localName != 'tabbrowser') b = gBrowser;
  55.             SplitBrowser.layoutTabs(b.parentSubBrowser, SplitBrowser.LAYOUT_GRID);
  56.         "
  57.         observes="splitbrowser-featuresForMultipleTabs-broadcaster"/>
  58.     <command id="splitbrowser-layout-x-command"
  59.         oncommand="
  60.             var b = SplitBrowser.activeBrowser;
  61.             if (b.localName != 'tabbrowser') b = gBrowser;
  62.             SplitBrowser.layoutTabs(b.parentSubBrowser, SplitBrowser.LAYOUT_ON_X_AXIS);
  63.         "
  64.         observes="splitbrowser-featuresForMultipleTabs-broadcaster"/>
  65.     <command id="splitbrowser-layout-y-command"
  66.         oncommand="
  67.             var b = SplitBrowser.activeBrowser;
  68.             if (b.localName != 'tabbrowser') b = gBrowser;
  69.             SplitBrowser.layoutTabs(b.parentSubBrowser, SplitBrowser.LAYOUT_ON_Y_AXIS);
  70.         "
  71.         observes="splitbrowser-featuresForMultipleTabs-broadcaster"/>
  72.     <command id="splitbrowser-gather-command"
  73.         oncommand="SplitBrowser.gatherSubBrowsers();"
  74.         observes="splitbrowser-featuresForSplitBrowsers-broadcaster"/>
  75.     <command id="splitbrowser-syncScroll-command"
  76.         oncommand="SplitBrowser.mainBrowserBox.toggleSyncScroll();"/>
  77. </commandset>
  78.  
  79. <keyset id="mainKeyset">
  80.     <key id="key_stop"
  81.         oncommand="SplitBrowser.activeBrowserStop();"/>
  82. </keyset>
  83.  
  84. <toolbarpalette id="BrowserToolbarPalette">
  85.     <toolbarbutton id="splitbrowser-menu-button"
  86.         type="menu"
  87.         class="splitbrowser-button toolbarbutton-1"
  88.         label="&splitbrowser.button.menu.label;"
  89.         tooltiptext="&splitbrowser.button.menu.tooltip;">
  90.         <menupopup id="splitbrowser-toolbarbutton-menu-popup"
  91.             onpopupshowing="SplitBrowser.updateMenu(this);">
  92.             <menuitem id="splitbrowser-toolbarbutton-remove-all"
  93.                 class="menuitem-iconic splitbrowser-remove-all-item"
  94.                 label="&splitbrowser.menu.removeAll.label;"
  95.                 accesskey="&splitbrowser.menu.removeAll.accesskey;"
  96.                 command="splitbrowser-removeAll-command"
  97.                 observes="splitbrowser-featuresForSplitBrowsers-broadcaster"/>
  98.             <menuseparator id="splitbrowser-toolbarbutton-undo-separator"/>
  99.             <menuitem id="splitbrowser-toolbarbutton-undo"
  100.                 class="menuitem-iconic splitbrowser-undo-item"
  101.                 label="&splitbrowser.menu.undo.label;"
  102.                 accesskey="&splitbrowser.menu.undo.accesskey;"
  103.                 command="splitbrowser-undo-command"
  104.                 observes="splitbrowser-undo-broadcaster"/>
  105.             <menu id="splitbrowser-toolbarbutton-undoList"
  106.                 class="menu-iconic splitbrowser-undoList-item"
  107.                 label="&splitbrowser.menu.undoList.label;"
  108.                 accesskey="&splitbrowser.menu.undoList.accesskey;"
  109.                 observes="splitbrowser-undo-broadcaster">
  110.                 <menupopup onpopupshowing="SplitBrowser.initUndoList(this);"
  111.                     command="splitbrowser-undoList-command"/>
  112.             </menu>
  113.             <menuseparator id="splitbrowser-toolbarbutton-collapse-separator"/>
  114.             <menuitem id="splitbrowser-toolbarbutton-collapse-all"
  115.                 class="menuitem-iconic splitbrowser-collapse-all-item"
  116.                 label="&splitbrowser.menu.collapseAll.label;"
  117.                 accesskey="&splitbrowser.menu.collapseAll.accesskey;"
  118.                 command="splitbrowser-collapseAll-command"
  119.                 observes="splitbrowser-collapseAll-broadcaster"/>
  120.             <menuitem id="splitbrowser-toolbarbutton-expand-all"
  121.                 class="menuitem-iconic splitbrowser-expand-all-item"
  122.                 label="&splitbrowser.menu.expandAll.label;"
  123.                 accesskey="&splitbrowser.menu.expandAll.accesskey;"
  124.                 command="splitbrowser-expandAll-command"
  125.                 observes="splitbrowser-expandAll-broadcaster"/>
  126.             <menuseparator id="splitbrowser-toolbarbutton-split-separator"/>
  127.             <menu id="splitbrowser-toolbarbutton-split"
  128.                 class="menu-iconic splitbrowser-split-item"
  129.                 label="&splitbrowser.menu.add.label;"
  130.                 observes="splitbrowser-featuresForMultipleTabs-broadcaster">
  131.                 <menupopup
  132.                     oncommand="
  133.                         var b = SplitBrowser.activeBrowser;
  134.                         if (b.localName != 'tabbrowser') b = gBrowser;
  135.                         SplitBrowser.addSubBrowserFromTab(b.selectedTab, SplitBrowser[event.target.getAttribute('splitbrowser-position')], null, !SplitBrowser.shouldMoveSplitTab);
  136.                     ">
  137.                     <menuitem label="&splitbrowser.menu.add.top.label;"
  138.                         class="menuitem-iconic splitbrowser-menuitem-add-top"
  139.                         splitbrowser-position="POSITION_TOP"/>
  140.                     <menuitem label="&splitbrowser.menu.add.right.label;"
  141.                         class="menuitem-iconic splitbrowser-menuitem-add-right"
  142.                         splitbrowser-position="POSITION_RIGHT"/>
  143.                     <menuitem label="&splitbrowser.menu.add.left.label;"
  144.                         class="menuitem-iconic splitbrowser-menuitem-add-left"
  145.                         splitbrowser-position="POSITION_LEFT"/>
  146.                     <menuitem label="&splitbrowser.menu.add.bottom.label;"
  147.                         class="menuitem-iconic splitbrowser-menuitem-add-bottom"
  148.                         splitbrowser-position="POSITION_BOTTOM"/>
  149.                 </menupopup>
  150.             </menu>
  151.             <menuseparator id="splitbrowser-toolbarbutton-layout-grid-separator"/>
  152.             <menuitem id="splitbrowser-toolbarbutton-layout-grid"
  153.                 class="menuitem-iconic splitbrowser-layout-grid-item"
  154.                 label="&splitbrowser.menu.layout.grid.label;"
  155.                 accesskey="&splitbrowser.menu.layout.grid.accesskey;"
  156.                 command="splitbrowser-layout-grid-command"
  157.                 observes="splitbrowser-featuresForMultipleTabs-broadcaster"/>
  158.             <menuitem id="splitbrowser-toolbarbutton-layout-x"
  159.                 class="menuitem-iconic splitbrowser-layout-x-item"
  160.                 label="&splitbrowser.menu.layout.x.label;"
  161.                 accesskey="&splitbrowser.menu.layout.x.accesskey;"
  162.                 command="splitbrowser-layout-x-command"
  163.                 observes="splitbrowser-featuresForMultipleTabs-broadcaster"/>
  164.             <menuitem id="splitbrowser-toolbarbutton-layout-y"
  165.                 class="menuitem-iconic splitbrowser-layout-y-item"
  166.                 label="&splitbrowser.menu.layout.y.label;"
  167.                 accesskey="&splitbrowser.menu.layout.y.accesskey;"
  168.                 command="splitbrowser-layout-y-command"
  169.                 observes="splitbrowser-featuresForMultipleTabs-broadcaster"/>
  170.             <menuitem id="splitbrowser-toolbarbutton-gather"
  171.                 class="menuitem-iconic splitbrowser-gather-item"
  172.                 accesskey="&splitbrowser.menu.gather.accesskey;"
  173.                 label="&splitbrowser.menu.gather.label;"
  174.                 command="splitbrowser-gather-command"
  175.                 observes="splitbrowser-featuresForSplitBrowsers-broadcaster"/>
  176.             <menuseparator id="splitbrowser-toolbarbutton-syncScroll-separator"/>
  177.             <menuitem id="splitbrowser-toolbarbutton-syncScroll"
  178.                 label="&splitbrowser.menu.syncScroll.label;"
  179.                 accesskey="&splitbrowser.menu.syncScroll.accesskey;"
  180.                 type="checkbox"
  181.                 autocheck="false"
  182.                 command="splitbrowser-syncScroll-command"
  183.                 observes="splitbrowser-syncScroll-broadcaster"/>
  184.         </menupopup>
  185.     </toolbarbutton>
  186.     <toolbarbutton id="splitbrowser-layout-grid-button"
  187.         class="splitbrowser-button toolbarbutton-1"
  188.         label="&splitbrowser.button.layout.grid.label;"
  189.         tooltiptext="&splitbrowser.button.layout.grid.tooltip;"
  190.         command="splitbrowser-layout-grid-command"
  191.         observes="splitbrowser-featuresForMultipleTabs-broadcaster"/>
  192.     <toolbarbutton id="splitbrowser-gather-button"
  193.         class="splitbrowser-button toolbarbutton-1"
  194.         label="&splitbrowser.button.gather.label;"
  195.         tooltiptext="&splitbrowser.button.gather.tooltip;"
  196.         command="splitbrowser-gather-command"
  197.         observes="splitbrowser-featuresForSplitBrowsers-broadcaster"/>
  198.     <toolbarbutton id="splitbrowser-collapseAll-button"
  199.         class="splitbrowser-button toolbarbutton-1"
  200.         label="&splitbrowser.button.collapseAll.label;"
  201.         tooltiptext="&splitbrowser.button.collapseAll.tooltip;"
  202.         command="splitbrowser-collapseAll-command"
  203.         observes="splitbrowser-collapseAll-broadcaster"/>
  204.     <toolbarbutton id="splitbrowser-expandAll-button"
  205.         class="splitbrowser-button toolbarbutton-1"
  206.         label="&splitbrowser.button.expandAll.label;"
  207.         tooltiptext="&splitbrowser.button.expandAll.tooltip;"
  208.         command="splitbrowser-expandAll-command"
  209.         observes="splitbrowser-expandAll-broadcaster"/>
  210.     <toolbarbutton id="splitbrowser-removeAll-button"
  211.         class="splitbrowser-button toolbarbutton-1"
  212.         label="&splitbrowser.button.removeAll.label;"
  213.         tooltiptext="&splitbrowser.button.removeAll.tooltip;"
  214.         command="splitbrowser-removeAll-command"
  215.         observes="splitbrowser-featuresForSplitBrowsers-broadcaster"/>
  216. </toolbarpalette>
  217.  
  218.  
  219. <menubar id="main-menubar">
  220.     <menu id="splitbrowser-menu"
  221.         label="&splitbrowser.menu.label;"
  222.         accesskey="&splitbrowser.menu.accesskey;"
  223.         insertbefore="tools-menu">
  224.         <menupopup id="splitbrowser-menu-popup"
  225.             onpopupshowing="SplitBrowser.updateMenu(this);">
  226.             <menuitem id="splitbrowser-remove-all"
  227.                 class="menuitem-iconic splitbrowser-remove-all-item"
  228.                 label="&splitbrowser.menu.removeAll.label;"
  229.                 accesskey="&splitbrowser.menu.removeAll.accesskey;"
  230.                 command="splitbrowser-removeAll-command"
  231.                 observes="splitbrowser-featuresForSplitBrowsers-broadcaster"/>
  232.             <menuseparator id="splitbrowser-undo-separator"/>
  233.             <menuitem id="splitbrowser-undo"
  234.                 class="menuitem-iconic splitbrowser-undo-item"
  235.                 label="&splitbrowser.menu.undo.label;"
  236.                 accesskey="&splitbrowser.menu.undo.accesskey;"
  237.                 command="splitbrowser-undo-command"
  238.                 observes="splitbrowser-undo-broadcaster"/>
  239.             <menu id="splitbrowser-undoList"
  240.                 class="menu-iconic splitbrowser-undoList-item"
  241.                 label="&splitbrowser.menu.undoList.label;"
  242.                 accesskey="&splitbrowser.menu.undoList.accesskey;"
  243.                 observes="splitbrowser-undo-broadcaster">
  244.                 <menupopup onpopupshowing="SplitBrowser.initUndoList(this);"
  245.                     command="splitbrowser-undoList-command"/>
  246.             </menu>
  247.             <menuseparator id="splitbrowser-collapse-separator"/>
  248.             <menuitem id="splitbrowser-collapse-all"
  249.                 class="menuitem-iconic splitbrowser-collapse-all-item"
  250.                 label="&splitbrowser.menu.collapseAll.label;"
  251.                 accesskey="&splitbrowser.menu.collapseAll.accesskey;"
  252.                 command="splitbrowser-collapseAll-command"
  253.                 observes="splitbrowser-collapseAll-broadcaster"/>
  254.             <menuitem id="splitbrowser-expand-all"
  255.                 class="menuitem-iconic splitbrowser-expand-all-item"
  256.                 label="&splitbrowser.menu.expandAll.label;"
  257.                 accesskey="&splitbrowser.menu.expandAll.accesskey;"
  258.                 command="splitbrowser-expandAll-command"
  259.                 observes="splitbrowser-expandAll-broadcaster"/>
  260.             <menuseparator id="splitbrowser-split-separator"/>
  261.             <menu id="splitbrowser-split"
  262.                 class="menu-iconic splitbrowser-split-item"
  263.                 label="&splitbrowser.menu.add.label;"
  264.                 observes="splitbrowser-featuresForMultipleTabs-broadcaster">
  265.                 <menupopup
  266.                     oncommand="
  267.                         var b = SplitBrowser.activeBrowser;
  268.                         if (b.localName != 'tabbrowser') b = gBrowser;
  269.                         SplitBrowser.addSubBrowserFromTab(b.selectedTab, SplitBrowser[event.target.getAttribute('splitbrowser-position')], null, !SplitBrowser.shouldMoveSplitTab);
  270.                     ">
  271.                     <menuitem label="&splitbrowser.menu.add.top.label;"
  272.                         class="menuitem-iconic splitbrowser-menuitem-add-top"
  273.                         splitbrowser-position="POSITION_TOP"/>
  274.                     <menuitem label="&splitbrowser.menu.add.right.label;"
  275.                         class="menuitem-iconic splitbrowser-menuitem-add-right"
  276.                         splitbrowser-position="POSITION_RIGHT"/>
  277.                     <menuitem label="&splitbrowser.menu.add.left.label;"
  278.                         class="menuitem-iconic splitbrowser-menuitem-add-left"
  279.                         splitbrowser-position="POSITION_LEFT"/>
  280.                     <menuitem label="&splitbrowser.menu.add.bottom.label;"
  281.                         class="menuitem-iconic splitbrowser-menuitem-add-bottom"
  282.                         splitbrowser-position="POSITION_BOTTOM"/>
  283.                 </menupopup>
  284.             </menu>
  285.             <menuseparator id="splitbrowser-layout-grid-separator"/>
  286.             <menuitem id="splitbrowser-layout-grid"
  287.                 class="menuitem-iconic splitbrowser-layout-grid-item"
  288.                 label="&splitbrowser.menu.layout.grid.label;"
  289.                 accesskey="&splitbrowser.menu.layout.grid.accesskey;"
  290.                 command="splitbrowser-layout-grid-command"
  291.                 observes="splitbrowser-featuresForMultipleTabs-broadcaster"/>
  292.             <menuitem id="splitbrowser-layout-x"
  293.                 class="menuitem-iconic splitbrowser-layout-x-item"
  294.                 label="&splitbrowser.menu.layout.x.label;"
  295.                 accesskey="&splitbrowser.menu.layout.x.accesskey;"
  296.                 command="splitbrowser-layout-x-command"
  297.                 observes="splitbrowser-featuresForMultipleTabs-broadcaster"/>
  298.             <menuitem id="splitbrowser-layout-y"
  299.                 class="menuitem-iconic splitbrowser-layout-y-item"
  300.                 label="&splitbrowser.menu.layout.y.label;"
  301.                 accesskey="&splitbrowser.menu.layout.y.accesskey;"
  302.                 command="splitbrowser-layout-y-command"
  303.                 observes="splitbrowser-featuresForMultipleTabs-broadcaster"/>
  304.             <menuitem id="splitbrowser-gather"
  305.                 class="menuitem-iconic splitbrowser-gather-item"
  306.                 label="&splitbrowser.menu.gather.label;"
  307.                 accesskey="&splitbrowser.menu.gather.accesskey;"
  308.                 command="splitbrowser-gather-command"
  309.                 observes="splitbrowser-featuresForSplitBrowsers-broadcaster"/>
  310.             <menuseparator id="splitbrowser-syncScroll-separator"/>
  311.             <menuitem id="splitbrowser-syncScroll"
  312.                 label="&splitbrowser.menu.syncScroll.label;"
  313.                 accesskey="&splitbrowser.menu.syncScroll.accesskey;"
  314.                 type="checkbox"
  315.                 autocheck="false"
  316.                 command="splitbrowser-syncScroll-command"
  317.                 observes="splitbrowser-syncScroll-broadcaster"/>
  318.         </menupopup>
  319.     </menu>
  320. </menubar>
  321.  
  322.  
  323. <menupopup id="menu_FilePopup">
  324.     <menuitem id="splitbrowser-file-remove-all"
  325.         insertafter="menu_close"
  326.         class="menuitem-iconic splitbrowser-remove-all-item"
  327.         label="&splitbrowser.file.removeAll.label;"
  328.         accesskey="&splitbrowser.file.removeAll.accesskey;"
  329.         command="splitbrowser-removeAll-command"
  330.         observes="splitbrowser-featuresForSplitBrowsers-broadcaster"/>
  331. </menupopup>
  332.  
  333. <menupopup id="menu_viewPopup">
  334.     <menuseparator id="splitbrowser-view-separator"/>
  335.     <menuitem id="splitbrowser-view-collapse-all"
  336.         class="menuitem-iconic splitbrowser-collapse-all-item"
  337.         label="&splitbrowser.view.collapseAll.label;"
  338.         accesskey="&splitbrowser.view.collapseAll.accesskey;"
  339.         command="splitbrowser-collapseAll-command"
  340.         observes="splitbrowser-collapseAll-broadcaster"/>
  341.     <menuitem id="splitbrowser-view-expand-all"
  342.         class="menuitem-iconic splitbrowser-expand-all-item"
  343.         label="&splitbrowser.view.expandAll.label;"
  344.         accesskey="&splitbrowser.view.expandAll.accesskey;"
  345.         command="splitbrowser-expandAll-command"
  346.         observes="splitbrowser-expandAll-broadcaster"/>
  347. </menupopup>
  348.  
  349. <menupopup id="goPopup">
  350.     <menu id="splitbrowser-goMenu-undoList"
  351.         class="menu-iconic splitbrowser-undoList-item"
  352.         label="&splitbrowser.menu.undoList.label;"
  353.         accesskey="&splitbrowser.menu.undoList.accesskey;"
  354.         observes="splitbrowser-undo-broadcaster">
  355.         <menupopup onpopupshowing="SplitBrowser.initUndoList(this);"
  356.             command="splitbrowser-undoList-command"/>
  357.     </menu>
  358. </menupopup>
  359.  
  360. <popup id="contentAreaContextMenu">
  361.     <menu id="splitbrowser-context-item-link"
  362.         class="menu-iconic"
  363.         insertafter="context-openlinkintab"
  364.         label="&splitbrowser.link.add.label;">
  365.         <menupopup>
  366.             <menuitem label="&splitbrowser.link.add.top.label;"
  367.                 class="menuitem-iconic splitbrowser-menuitem-add-top"
  368.                 oncommand="SplitBrowser.addSubBrowser(gContextMenu.linkURL, null, SplitBrowser.POSITION_TOP);"/>
  369.             <menuitem label="&splitbrowser.link.add.right.label;"
  370.                 class="menuitem-iconic splitbrowser-menuitem-add-right"
  371.                 oncommand="SplitBrowser.addSubBrowser(gContextMenu.linkURL, null, SplitBrowser.POSITION_RIGHT);"/>
  372.             <menuitem label="&splitbrowser.link.add.left.label;"
  373.                 class="menuitem-iconic splitbrowser-menuitem-add-left"
  374.                 oncommand="SplitBrowser.addSubBrowser(gContextMenu.linkURL, null, SplitBrowser.POSITION_LEFT);"/>
  375.             <menuitem label="&splitbrowser.link.add.bottom.label;"
  376.                 class="menuitem-iconic splitbrowser-menuitem-add-bottom"
  377.                 oncommand="SplitBrowser.addSubBrowser(gContextMenu.linkURL, null, SplitBrowser.POSITION_BOTTOM);"/>
  378.         </menupopup>
  379.     </menu>
  380.  
  381.  
  382.     <menuseparator id="splitbrowser-context-splitter"/>
  383.     <menu id="splitbrowser-context-item"
  384.         class="menu-iconic"
  385.         label="&splitbrowser.add.label;">
  386.         <menupopup>
  387.             <menuitem label="&splitbrowser.add.top.label;"
  388.                 class="menuitem-iconic splitbrowser-menuitem-add-top"
  389.                 oncommand="SplitBrowser.fireSubBrowserAddRequestEventFromFrame(document.popupNode.ownerDocument.defaultView, null, SplitBrowser.POSITION_TOP, null, true);"/>
  390.             <menuitem label="&splitbrowser.add.right.label;"
  391.                 class="menuitem-iconic splitbrowser-menuitem-add-right"
  392.                 oncommand="SplitBrowser.fireSubBrowserAddRequestEventFromFrame(document.popupNode.ownerDocument.defaultView, null, SplitBrowser.POSITION_RIGHT, null, true);"/>
  393.             <menuitem label="&splitbrowser.add.left.label;"
  394.                 class="menuitem-iconic splitbrowser-menuitem-add-left"
  395.                 oncommand="SplitBrowser.fireSubBrowserAddRequestEventFromFrame(document.popupNode.ownerDocument.defaultView, null, SplitBrowser.POSITION_LEFT, null, true);"/>
  396.             <menuitem label="&splitbrowser.add.bottom.label;"
  397.                 class="menuitem-iconic splitbrowser-menuitem-add-bottom"
  398.                 oncommand="SplitBrowser.fireSubBrowserAddRequestEventFromFrame(document.popupNode.ownerDocument.defaultView, null, SplitBrowser.POSITION_BOTTOM, null, true);"/>
  399.         </menupopup>
  400.     </menu>
  401. </popup>
  402.  
  403. <menu id="frame">
  404.     <menupopup id="frame_popup">
  405.         <menuseparator/>
  406.         <menu id="splitbrowser-context-item-frame"
  407.             class="menu-iconic"
  408.             label="&splitbrowser.frame.add.label;">
  409.             <menupopup>
  410.                 <menuitem label="&splitbrowser.frame.add.top.label;"
  411.                     class="menuitem-iconic splitbrowser-menuitem-add-top"
  412.                     oncommand="SplitBrowser.addSubBrowser(document.popupNode.ownerDocument.defaultView.location.href, null, SplitBrowser.POSITION_TOP);"/>
  413.                 <menuitem label="&splitbrowser.frame.add.right.label;"
  414.                     class="menuitem-iconic splitbrowser-menuitem-add-right"
  415.                     oncommand="SplitBrowser.addSubBrowser(document.popupNode.ownerDocument.defaultView.location.href, null, SplitBrowser.POSITION_RIGHT);"/>
  416.                 <menuitem label="&splitbrowser.frame.add.left.label;"
  417.                     class="menuitem-iconic splitbrowser-menuitem-add-left"
  418.                     oncommand="SplitBrowser.addSubBrowser(document.popupNode.ownerDocument.defaultView.location.href, null, SplitBrowser.POSITION_LEFT);"/>
  419.                 <menuitem label="&splitbrowser.frame.add.bottom.label;"
  420.                     class="menuitem-iconic splitbrowser-menuitem-add-bottom"
  421.                     oncommand="SplitBrowser.addSubBrowser(document.popupNode.ownerDocument.defaultView.location.href, null, SplitBrowser.POSITION_BOTTOM);"/>
  422.             </menupopup>
  423.         </menu>
  424.     </menupopup>
  425. </menu>
  426.  
  427.  
  428. <window id="main-window">
  429.     <panel id="splitbrowser-add-button-panel"
  430.         onpopupshowing="this.popupBoxObject.setConsumeRollupEvent(this.popupBoxObject.ROLLUP_NO_CONSUME);">
  431.         <toolbarbutton id="splitbrowser-add-button-in-panel"
  432.             class="splitbrowser-add-button"
  433.             onclick="
  434.                 if (event.button != 0) {
  435.                     SplitBrowser.hideAddButton(event, true);
  436. /*
  437.                     var req = this.targetSubBrowser.browser.contentWindow.QueryInterface(Components.interfaces.nsIInterfaceRequestor);
  438.                     var winUtils = req.getInterface(Components.interfaces.nsIDOMWindowUtils);
  439.                     if ('sendMouseEvent' in winUtils)
  440.                         winUtils.sendMouseEvent('click', event.screenX, event.screenY, event.button, 1, 0);
  441. */
  442.                 }
  443.             "
  444.             oncommand="if (SplitBrowser.addButtonIsActive) SplitBrowser.onAddButtonCommand(event);"
  445.             ondragover="if (SplitBrowser.addButtonIsActive) nsDragAndDrop.dragOver(event, SplitBrowser.addButtonDNDObserver);"
  446.             ondragdrop="if (SplitBrowser.addButtonIsActive) nsDragAndDrop.drop(event, SplitBrowser.addButtonDNDObserver);"
  447.             tooltiptext-top="&splitbrowser.add.button.top.tooltip;"
  448.             tooltiptext-bottom="&splitbrowser.add.button.bottom.tooltip;"
  449.             tooltiptext-left="&splitbrowser.add.button.left.tooltip;"
  450.             tooltiptext-right="&splitbrowser.add.button.right.tooltip;"/>
  451.     </panel>
  452. </window>
  453.  
  454.  
  455. <popupset id="mainPopupSet">
  456.     <menupopup id="multipletab-tabcontext-menu-template">
  457.         <menu id="splitbrowser-tab-context-item-split"
  458.             class="menu-iconic splitbrowser-split-item tab-context"
  459.             label="&splitbrowser.tab.add.label;"
  460.             tbattr="tabbrowser-multiple"
  461.             observes="splitbrowser-featuresForMultipleTabs-broadcaster">
  462.             <menupopup
  463.                 oncommand="
  464.                     var b = this;
  465.                     while (b.localName != 'tabbrowser')
  466.                         b = b.parentNode;
  467.                     SplitBrowser.addSubBrowserFromTab(b.mContextTab, SplitBrowser[event.target.getAttribute('splitbrowser-position')], null, !SplitBrowser.shouldMoveSplitTab);
  468.                 ">
  469.                 <menuitem label="&splitbrowser.tab.add.top.label;"
  470.                     class="menuitem-iconic splitbrowser-menuitem-add-top"
  471.                     splitbrowser-position="POSITION_TOP"/>
  472.                 <menuitem label="&splitbrowser.tab.add.right.label;"
  473.                     class="menuitem-iconic splitbrowser-menuitem-add-right"
  474.                     splitbrowser-position="POSITION_RIGHT"/>
  475.                 <menuitem label="&splitbrowser.tab.add.left.label;"
  476.                     class="menuitem-iconic splitbrowser-menuitem-add-left"
  477.                     splitbrowser-position="POSITION_LEFT"/>
  478.                 <menuitem label="&splitbrowser.tab.add.bottom.label;"
  479.                     class="menuitem-iconic splitbrowser-menuitem-add-bottom"
  480.                     splitbrowser-position="POSITION_BOTTOM"/>
  481.             </menupopup>
  482.         </menu>
  483.         <menuseparator id="splitbrowser-tab-context-separator-layout-grid"
  484.             class="splitbrowser-tab-context-separator"/>
  485.         <menuitem id="splitbrowser-tab-context-item-layout-grid"
  486.             class="menuitem-iconic splitbrowser-layout-grid-item tab-context"
  487.             label="&splitbrowser.tab.layout.grid.label;"
  488.             tbattr="tabbrowser-multiple"
  489.             observes="splitbrowser-featuresForMultipleTabs-broadcaster"
  490.             oncommand="
  491.                 var b = this;
  492.                 while (b.localName != 'tabbrowser')
  493.                     b = b.parentNode;
  494.                 SplitBrowser.layoutTabs(b.parentSubBrowser, SplitBrowser.LAYOUT_GRID);
  495.             "/>
  496.         <menuitem id="splitbrowser-tab-context-item-layout-x"
  497.             class="menuitem-iconic splitbrowser-layout-x-item tab-context"
  498.             label="&splitbrowser.tab.layout.x.label;"
  499.             tbattr="tabbrowser-multiple"
  500.             observes="splitbrowser-featuresForMultipleTabs-broadcaster"
  501.             oncommand="
  502.                 var b = this;
  503.                 while (b.localName != 'tabbrowser')
  504.                     b = b.parentNode;
  505.                 SplitBrowser.layoutTabs(b.parentSubBrowser, SplitBrowser.LAYOUT_ON_X_AXIS);
  506.             "/>
  507.         <menuitem id="splitbrowser-tab-context-item-layout-y"
  508.             class="menuitem-iconic splitbrowser-layout-y-item tab-context"
  509.             label="&splitbrowser.tab.layout.y.label;"
  510.             tbattr="tabbrowser-multiple"
  511.             observes="splitbrowser-featuresForMultipleTabs-broadcaster"
  512.             oncommand="
  513.                 var b = this;
  514.                 while (b.localName != 'tabbrowser')
  515.                     b = b.parentNode;
  516.                 SplitBrowser.layoutTabs(b.parentSubBrowser, SplitBrowser.LAYOUT_ON_Y_AXIS);
  517.             "/>
  518.         <menuitem id="splitbrowser-tab-context-item-gather"
  519.             class="menuitem-iconic splitbrowser-gather-item tab-context"
  520.             label="&splitbrowser.tab.gather.label;"
  521.             oncommand="SplitBrowser.gatherSubBrowsers();"
  522.             observes="splitbrowser-featuresForSplitBrowsers-broadcaster"/>
  523.     </menupopup>
  524. </popupset>
  525.  
  526.  
  527. <popupset id="splitbrowser-popupset">
  528.     <menupopup id="subbrowser-splitter-contextmenu"
  529.         onpopupshowing="SplitBrowser.updateSplitterContextMenu();">
  530.         <menuitem class="subbrowser-context-collapse"
  531.             label="&splitbrowser.subbrowser.menu.collapse;"
  532.             oncommand="SplitBrowser.toggleSplitterCollapsed();"/>
  533.         <menuitem class="subbrowser-context-expand"
  534.             label="&splitbrowser.subbrowser.menu.expand;"
  535.             oncommand="SplitBrowser.toggleSplitterCollapsed();"/>
  536.     </menupopup>
  537. </popupset>
  538.  
  539.  
  540. <menupopup id="multipletab-selection-menu">
  541.     <menuseparator id="multipletab-selection-splitbrowser-separator"/>
  542.     <menuitem id="multipletab-selection-splitbrowser-layout-grid"
  543.         class="menuitem-iconic splitbrowser-layout-grid-item"
  544.         label="&multipletab.layout.grid.label;"
  545.         oncommand="
  546.             var b = SplitBrowser.activeBrowser;
  547.             if (b.localName != 'tabbrowser') b = gBrowser;
  548.             SplitBrowser.layoutTabs(b.parentSubBrowser, SplitBrowser.LAYOUT_GRID);
  549.         "/>
  550.     <menuitem id="multipletab-selection-splitbrowser-layout-x"
  551.         class="menuitem-iconic splitbrowser-layout-x-item"
  552.         label="&multipletab.layout.x.label;"
  553.         oncommand="
  554.             var b = SplitBrowser.activeBrowser;
  555.             if (b.localName != 'tabbrowser') b = gBrowser;
  556.             SplitBrowser.layoutTabs(b.parentSubBrowser, SplitBrowser.LAYOUT_ON_X_AXIS);
  557.         "/>
  558.     <menuitem id="multipletab-selection-splitbrowser-layout-y"
  559.         class="menuitem-iconic splitbrowser-layout-y-item"
  560.         label="&multipletab.layout.y.label;"
  561.         oncommand="
  562.             var b = SplitBrowser.activeBrowser;
  563.             if (b.localName != 'tabbrowser') b = gBrowser;
  564.             SplitBrowser.layoutTabs(b.parentSubBrowser, SplitBrowser.LAYOUT_ON_Y_AXIS);
  565.         "/>
  566. </menupopup>
  567.  
  568.  
  569. </overlay>
  570.